/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package modelo.personas;

import hibernate.GestorHibernate;

/**
 *
 * @author Sole
 */
public class GestorTelefono extends GestorHibernate {
    private Telefono model;

    public Telefono getModel() {
        return model;
    }

    public void setModel(Telefono model) {
        this.model = model;
    }

    public void guardar() {
        this.guardarObjeto(this.getModel());
    }

    public void eliminar() {
        this.eliminarObjeto(this.getModel());
    }

    public void actualizar() {
        this.actualizarObjeto(this.getModel());
    }

    public Telefono crearModelo(String codigo, int nro) {
        this.setModel(new Telefono());
        this.getModel().setCodArea(codigo);
        this.getModel().setNumero(nro);
        return this.getModel();
    }

}
